import request from '../request'
import type { ILoginParams } from '@/types/user'

export const authApi = {
  // 登录
  login: (data: ILoginParams) => {
    return request({
      url: '/v1/auth/login',
      method: 'post',
      data,
      headers: {
        // 移除默认的 Authorization 头
        Authorization: ''
      }
    })
  }
} 